home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
biz
/
demo
/
FamCon35a_demo.lha
/
FamCon
/
paginate_summary.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-04-23
|
818b
|
42 lines
/* Program to take Genie summary output and add date and page numbers */
/* E.M.Greene 4/23/94 */
parse arg file_name family_name .
page_header = d2c(12) || family_name || " family summary "
page_header = page_header || date() || " Page"
page_num = 1
if open(f, "paginate_summary.txt","R") then do
do forever
line = readln(f)
if eof(f) then
leave
say line
end
x = close(f)
end
if open(f, file_name, "r") then do
say page_header page_num
say
page_num = page_num + 1
do forever
line = readln(f)
if eof(f) then
leave
if left(line,1) = d2c(12) then do
say page_header page_num
say
page_num = page_num + 1
say substr(line,2)
end
else
say line
end
x = close(f)
end
else
say "Couldn't open '" || file_name || "'"
exit